package com.fengke.schedule.order;

import org.apache.log4j.Logger;

import com.fengke.service.OrderService;
import com.fengke.util.LoggerFactory;

public class TimeoutUnpaidOrderSchedule {
	private Logger logger = LoggerFactory.getLogger(TimeoutUnpaidOrderSchedule.class);
	private OrderService orderService;
	public void execute() {
		try {
			orderService.updateTimeoutNopaidOrder();
		} catch (Exception e) {
			logger.error("updateTimeoutNopaidOrder Exception !", e);
		}
	}
	public OrderService getOrderService() {
		return orderService;
	}
	public void setOrderService(OrderService orderService) {
		this.orderService = orderService;
	}
}
